/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entitys;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 *
 * @author usuarios
 */
@Entity
public class Vacine {
    
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name="idvacine")
    private long idVacine;
    @Column(length = 15)
    private String name;
    @Column(length = 15)
    private float dosage;
    @ManyToOne 
    private MedicalRecord medicalrecord;   
    public Vacine(){
        super();
    }
    public String getname(){
        return name;
    }
    public void setname(String name){
        this.name = name;
    }
    public float getdosage(){
        return dosage;
    }
    public void setdosage(float dosage){
        this.dosage = dosage;
    }

    public Long getIdVacine() {
        return idVacine;
    }

    public void setIdVacine(Long idVacine) {
        this.idVacine = idVacine;
    }
}
